﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Trangchu.ascx.cs" Inherits="Controls_Trangchu" %>
<div class="main-items">
    <div class="tieude-items">
        <h4>
            Sảm phẩn mới</h4>
    </div>
    <div class="content-items">
        <ul class="list">
            <asp:Repeater ID="rptProductNew" runat="server" OnItemCommand="rptProductNew_ItemCommand">
                <ItemTemplate>
                    <li><a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                        <%--<img src='<%#Eval("Image") %>' alt="" />--%>
                        <asp:Image ID="Image1" ImageUrl='<%#Eval("Image") %>' runat="server" />
                        </a>
                        <p class="name">
                        
                            <%--<asp:HyperLink ID="hplTenSanPham" NavigateUrl='<%#string.Format("~/Chi-tiet-san-pham.aspx?Id={0}",Eval("Id")) %>' runat="server" ><%#Eval("Name") %></asp:HyperLink>--%>
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <asp:Label ID="lblTenSanPham" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                        </a></p>
                        <p class="view">
                            Lượt xem:
                            <%#Eval("View") %></p>
                        <p class="gia">
                            <asp:Label ID="lblGia" runat="server" Text='<%#Eval("Price")%>'></asp:Label>
                        </p>
                        <p class="chitiet-muahang">
                            <asp:Button ID="btnMuaHang"  runat="server" UseSubmitBehavior="False" CommandName="MuaHang" CausesValidation="False" CssClass="btnMuaHang" CommandArgument='<%#Eval("Id") %>' />
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <img alt="" src="Images/Styles/chitiet.png"></a>
                        </p>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
       
    </div> <div class="clear">
</div>
</div>
<div class="clear">
</div>
<div class="main-items">
    <div class="tieude-items">
        <h4>
            Sản phẩm hot</h4>
    </div>
    <div class="content-items">
        <ul class="list">
            <asp:Repeater ID="rptProductHot" runat="server" OnItemCommand="rptProductNew_ItemCommand">
                <ItemTemplate>
                    <li><a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                        <img src='<%#Eval("Image") %>' alt="" /></a>
                        <p class="name">
                        
                            <%--<asp:HyperLink ID="hplTenSanPham" NavigateUrl='<%#string.Format("~/Chi-tiet-san-pham.aspx?Id={0}",Eval("Id")) %>' runat="server" ><%#Eval("Name") %></asp:HyperLink>--%>
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <asp:Label ID="lblTenSanPham" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                        </a></p>
                        <p class="view">
                            Lượt xem:
                            <%#Eval("View") %></p>
                        <p class="gia">
                            <asp:Label ID="lblGia" runat="server" Text='<%#Eval("Price")%>'></asp:Label>
                        </p>
                        <p class="chitiet-muahang">
                            <asp:Button ID="btnMuaHang"  runat="server" UseSubmitBehavior="False" CommandName="MuaHang" CausesValidation="False" CssClass="btnMuaHang" CommandArgument='<%#Eval("Id") %>' />
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <img alt="" src="Images/Styles/chitiet.png"></a>
                        </p>
                    </li>
                </ItemTemplate>
            </asp:Repeater>

        </ul>
    </div>
</div>
<div class="clear">
</div>
<div class="main-items">
    <div class="tieude-items">
        <h4>
            Sản phẩm mua nhiều</h4>
    </div>
    <div class="content-items">
        <ul class="list">
            <asp:Repeater ID="rptSanPhanBanChay" runat="server" OnItemCommand="rptProductNew_ItemCommand">
                <ItemTemplate>
                    <li><a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                        <img src='<%#Eval("Image") %>' alt="" /></a>
                        <p class="name">
                        
                            <%--<asp:HyperLink ID="hplTenSanPham" NavigateUrl='<%#string.Format("~/Chi-tiet-san-pham.aspx?Id={0}",Eval("Id")) %>' runat="server" ><%#Eval("Name") %></asp:HyperLink>--%>
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <asp:Label ID="lblTenSanPham" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                        </a></p>
                        <p class="view">
                            Lượt xem:
                            <%#Eval("View") %></p>
                        <p class="gia">
                            <asp:Label ID="lblGia" runat="server" Text='<%#Eval("Price")%>'></asp:Label>
                        </p>
                        <p class="chitiet-muahang">
                            <asp:Button ID="btnMuaHang"  runat="server" UseSubmitBehavior="False" CommandName="MuaHang" CausesValidation="False" CssClass="btnMuaHang" CommandArgument='<%#Eval("Id") %>' />
                            <a href='Chi-tiet-san-pham.aspx?Id=<%#Eval("Id") %>'>
                                <img alt="" src="Images/Styles/chitiet.png"></a>
                        </p>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
</div>
<div class="clear">
</div>
